<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link href="http://gmpg.org/xfn/11" rel="profile">
  <meta name="description" content="{{ page.locale.project.description }}">
  <meta name="author" content="Sean Callan">

  <meta property="og:url" content="{{ site.url }}{{ page.url }}">
  <meta property="og:site_name" content="ElixirSchool">
  <meta property="og:title" content="{{ page.locale.project.title }}">
  <meta property="og:locale" content="{{ page.lang }}">
  <meta property="og:description" content="{{ page.locale.project.description }}">
  <meta property="og:image" content="{{ site.url }}{% asset og_image.jpg @path %}">
  
  {% for _interlang_chapter in site.tree[page.lang][page.section][page.chapter]['interlang'] %}
    {% assign _lang = _interlang_chapter[0] %}
    {% assign _url = _interlang_chapter[1]['url'] %}
    
    {% if _lang == "en" %}
      <link rel="alternate" hreflang="en" href="{{ _url }}" />
      <link rel="alternate" hreflang="x-default" href="{{ _url }}" />
    {% elsif _lang == "gr" %}
      <link rel="alternate" hreflang="el" href="{{ _url }}" />
    {% else %}
      <link rel="alternate" hreflang="{{ _lang }}" href="{{ _url }}" />
    {% endif %}
  {% endfor %}

  <link rel="canonical" href="{{ site.url }}{{ page.url }}">
  <link rel="apple-touch-icon" sizes="180x180" href="{{ site.url }}{% asset favicons/apple-touch-icon.png @path %}">
  <link rel="icon" type="image/png" sizes="32x32" href="{{ site.url }}{% asset favicons/favicon-32x32.png @path %}">
  <link rel="icon" type="image/png" sizes="16x16" href="{{ site.url }}{% asset favicons/favicon-16x16.png @path %}">
  <link rel="manifest" href="{{ site.url }}{% asset favicons/manifest.json @path %}">
  <link rel="shortcut icon" href="{{ site.url }}{% asset favicons/favicon.ico @path %}">
  <meta name="msapplication-config" content="{{ site.url }}{% asset favicons/browserconfig.xml @path %}">
  <meta name="theme-color" content="#ffffff">

  {% assign title = locale.project.title %}
  {% unless page.title == locale.project.title or page.title == nil %}
    {% assign title = page.title  | append: " &middot; " | append: title %}
  {% else %}

  {% endunless %}
  <title>{{ title }}</title>
  <!-- CSS -->
  <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
  {% asset main.css %}
  <!--[if lte IE 9]>{% asset ie9.css %}<![endif]-->
  <!--[if lte IE 8]>{% asset ie8.css %}<![endif]-->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
  <script type="text/javascript">
  !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
  analytics.load("C0p07Sw9j7mZnycKDCgPOAyqJR5hhyoQ");
  analytics.page()
  }}();
  </script>
  {% asset js.cookie.js %}
</head>
